﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebViewControl.Services;
using WebViewControl.Views;
using Microsoft.Extensions.Logging;
using WebViewControl.Contracts;
using WebViewModule.Services;

namespace WebViewControl
{
    public class WebviewControls : IModule
    {
        private readonly IRegionManager _regionManager; 
        public WebviewControls(IRegionManager regionManager )
        {
            _regionManager = regionManager; 
        }
        public void OnInitialized(IContainerProvider containerProvider)
        { 
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<WebviewWindow, WebviewViewModel>();
            //webview2服务注册
            containerRegistry.RegisterSingleton<IWebViewEnvironmentProvider, DefaultEnvironmentProvider>();
            containerRegistry.RegisterSingleton<IWebViewManager, WebViewManager>();
        }
    }
}
